-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add object diff to log with duplicate entity report #1140
Conversation
1be6069
to
d0d01f4
Compare
d0d01f4
to
e7240a0
Compare
packages/integration-sdk-runtime/src/execution/duplicateKeyTracker.ts
Outdated
Show resolved
Hide resolved
packages/integration-sdk-runtime/src/execution/duplicateKeyTracker.ts
Outdated
Show resolved
Hide resolved
try { | ||
propertiesDiff = diffObjects(aClone, bClone); | ||
} catch (e) { | ||
// ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be nice to get a log that the diffObject operation failed. same on line 251
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is hard to do, as we don't pass a logger to the job state code, I could add a property for the error message to the return object of this function, this ends up in a log so it could work, but it's weird. Let me know what you think!
No description provided.